package mementov2;

import originatorv2.OriginatorV2;

import command.Command;

public class SelectionnerMemento implements MementoV2 {
	
	private int debutSelection;
	
	private int finSelection;
	
	private Command command;

	public SelectionnerMemento(int debutSelection, int finSelection,
			Command command) {
		super();
		this.debutSelection = debutSelection;
		this.finSelection = finSelection;
		this.command = command;
	}

	@Override
	public OriginatorV2 getCommand() {
		return (OriginatorV2) this.command;
	}

	public int getDebutSelection() {
		return debutSelection;
	}

	public void setDebutSelection(int debutSelection) {
		this.debutSelection = debutSelection;
	}

	public int getFinSelection() {
		return finSelection;
	}

	public void setFinSelection(int finSelection) {
		this.finSelection = finSelection;
	}

}